﻿using ShanNiang.Hosting.Common;
using ShanNiang.Hosting.Enumerate;
using ShanNiang.Service.Enumerate;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShanNiang.Service.PackingModels.Requests
{
    /// <summary>
    /// 刷新箱码组合
    /// </summary>
    public class RefreshBoxCodesRequest : RequestBase
    {
        public RefreshBoxCodesRequest(IEnumerable<string?> codes, Guid? enterpriseId)
        {
            Codes.AddRange(codes);
            EnterpriseId = enterpriseId;
        }
        /// <summary>
        /// 箱码组
        /// </summary>
        public List<string?> Codes { get; set; } = [];
        /// <summary>
        /// 企业id
        /// </summary>
        public Guid? EnterpriseId { get; set; }
        public override ApiServer ApiServer => ApiServer.XkmServer;

        public override HttpMethod Method => HttpMethod.Put;

        public override bool NeedToken => true;

        protected override string RequestPath => "/api/Packing/RefreshBoxCodes";
    }
}
